package com.situ.day4;

import org.junit.Test;

public class ContinueBreakDemo {
	
	@Test
	public void testContinue() {
		for (int i = 1; i <= 5; i++) {
			if (i == 3) {
				continue;
			}
			System.out.print(i + " ");
		}
	}
	
	@Test
	public void testBreak() {
		for (int i = 1; i <= 5; i++) {
			if (i == 3) {
				break;
			}
			System.out.print(i + " ");
		}
	}
}
